package com.java.comprehensive.design.building_modelling.prototype_pattern;

public class Test {
    public static void main(String[] args) {
        Realizetype realizetype = new Realizetype();
        Realizetype clone = realizetype.clone();
        System.out.println(realizetype);
        System.out.println(clone);


        Student student = new Student();
        student.setStudentName("james");
        Student student1 = new Student();
        student1.setStudentName("riley");
        Citation citation = new Citation();
        citation.setName("张三");
        citation.setStudent(student);
        Citation clone1 = citation.clone();
        clone1.setName("李四");

        //模拟修改指针内容
        student.setStudentName("李四");


        citation.show();
        clone1.show();

    }
}
